package io.renren.modules.substation.service.impl;

import io.renren.modules.substation.entity.TBusiDevMonitorHisEntity;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.substation.dao.TBusiDevAirInfoDao;
import io.renren.modules.substation.entity.TBusiDevAirInfoEntity;
import io.renren.modules.substation.service.TBusiDevAirInfoService;


@Service("tBusiDevAirInfoService")
public class TBusiDevAirInfoServiceImpl extends ServiceImpl<TBusiDevAirInfoDao, TBusiDevAirInfoEntity> implements TBusiDevAirInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TBusiDevAirInfoEntity> page = this.page(
                new Query<TBusiDevAirInfoEntity>().getPage(params),
                new QueryWrapper<TBusiDevAirInfoEntity>()
        );

        return new PageUtils(page);
    }
    @Override
    public TBusiDevAirInfoEntity queryAirInfoByCondition(TBusiDevAirInfoEntity tBusiDevAirInfoEntity)
    {
        return  baseMapper.queryAirInfoByCondition(tBusiDevAirInfoEntity);
    }

    @Override
    public List<TBusiDevAirInfoEntity> queryAirListByCondition(TBusiDevAirInfoEntity tBusiDevAirInfoEntity)
    {
        return (List<TBusiDevAirInfoEntity>) baseMapper.queryAirListByCondition(tBusiDevAirInfoEntity);
    }


}